// ignore_for_file: constant_identifier_names

import 'package:get/get.dart';

enum ConfigProject {
  FlyElephant, //飞象分期
  MetreLot, //米多多
  SpendBao, //花钱宝
  NewHope, //瑞鼎金融
  BlueLoans, //蓝鲸金融
}

class Config {
  static ConfigProject project = ConfigProject.BlueLoans;

  static String getConfigIcon() {
    String logo = "";
    switch (project) {
      case ConfigProject.FlyElephant:
        logo = "fly_icons";
        break;
      case ConfigProject.MetreLot:
        logo = "lot_icons";
        break;
      case ConfigProject.SpendBao:
        logo = "bao_icons";
        break;
      case ConfigProject.NewHope:
        logo = "new_icons";
        break;
      case ConfigProject.BlueLoans:
        logo = "blue_icons";
        break;
      default:
    }
    return logo;
  }

  static String getConfigLogo() {
    String logo = "";
    switch (project) {
      case ConfigProject.FlyElephant:
        logo = "fly_logo";
        break;
      case ConfigProject.MetreLot:
        logo = "lot_logo";
        break;
      case ConfigProject.SpendBao:
        logo = "bao_logo";
        break;
      case ConfigProject.NewHope:
        logo = "new_logo";
        break;
      case ConfigProject.BlueLoans:
        logo = "blue_logo";
        break;
      default:
    }
    return logo;
  }

  static String getConfigPage() {
    String title = "";
    switch (project) {
      case ConfigProject.FlyElephant:
        title = "app_name".tr;
        break;
      case ConfigProject.MetreLot:
        title = "米多多";
        break;
      case ConfigProject.SpendBao:
        title = "app_name_bao".tr;
        break;
      case ConfigProject.NewHope:
        title = "瑞鼎金融";
        break;
      case ConfigProject.BlueLoans:
        title = "蓝鲸金融";
        break;
      default:
    }
    return title;
  }

  static String getConfigBaseUrl() {
    String baseUrl = "";

    switch (project) {
      case ConfigProject.FlyElephant:
        baseUrl = "https://fx.api.185t.cn";
        break;
      case ConfigProject.MetreLot:
        baseUrl = "http://new-api.kingpig666.com";
        break;
      case ConfigProject.SpendBao:
        baseUrl = "https://hqbapi.ov.aljamous.com";
        break;
      case ConfigProject.NewHope:
        baseUrl = "https://xxw.bo.daadh.cn";
        break;
      case ConfigProject.BlueLoans:
        baseUrl = "https://ljapi.ov.liang08.cn";
        break;
      default:
    }
    return baseUrl;
  }

  static String getConfigIpAddress() {
    String baseUrl = "";

    switch (project) {
      case ConfigProject.FlyElephant:
        baseUrl = "http://45.207.9.193:6001";
        break;
      case ConfigProject.MetreLot:
        baseUrl = "http://8.217.79.31:6001";
        break;
      case ConfigProject.SpendBao:
        baseUrl = "http://121.40.137.49:6001";
        break;
      case ConfigProject.NewHope:
        baseUrl = "http://121.40.137.49:6002";
        break;
      case ConfigProject.BlueLoans:
        baseUrl = "http://121.40.137.49:6003";
        break;
      default:
    }
    return baseUrl;
  }

  static String getConfigSocket() {
    String socket = "";

    switch (project) {
      case ConfigProject.FlyElephant:
        socket = 'ws://fx.api.185t.cn/customer-service?type=user&token=';
        break;
      case ConfigProject.MetreLot:
        socket =
            'ws://new-api.kingpig666.com/customer-service?type=user&token=';
        break;
      case ConfigProject.SpendBao:
        socket =
            'ws://hqbapi.ov.aljamous.com/customer-service?type=user&token=';
        break;
      case ConfigProject.NewHope:
        socket = 'ws:///xxw.bo.daadh.cn/customer-service?type=user&token=';
        break;
      case ConfigProject.BlueLoans:
        socket = 'ws:///ljapi.ov.liang08.cn/customer-service?type=user&token=';
        break;
      default:
    }
    return socket;
  }
}
